package com.ht.medicaltreatment.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.ht.medicaltreatment.R
import com.ht.medicaltreatment.bean.ProjectConsumableRecordDetails

class ShenQingDetailAdapter : BaseQuickAdapter<ProjectConsumableRecordDetails,BaseViewHolder>(R.layout.item_shenqing_detail_layout){
    override fun convert(holder: BaseViewHolder, item: ProjectConsumableRecordDetails) {
        holder.setText(R.id.tvCode,"${getItemPosition(item)+1}")
        holder.setText(R.id.tvName,item.projectConsumable.name)
        holder.setText(R.id.tvRongLiang,item.projectConsumable.specification)
        holder.setText(R.id.tvCount,"${item.projectConsumable.number}")
    }

}
